{% extends extends_template %}

{% block location %}
<div class="nav"><a href="{% url accounts %}">Accounts</a></div>
{% if account %}
<div class="nav"><a href="{% url account_details account_id=account.id %}">{{account.name}}</a></div>
<div class="nav"><a href="{% url list_account_cards account_id=account.id %}">Cards</a></div>
<div class="nav"><a href="{% url account_card_details card_id=card.id account_id=account.id %}">{{card.name}}</a></div>
{% else %}
<div class="nav"><a href="{% url list_cards %}">Cards</a></div>
<div class="nav"><a href="{% url card_details card_id=card.id %}">{{card.name}}</a></div>
{% endif %}
{% endblock %}
{% block content %}
<div id="card_edit">
    <table class="info">
            <tr>
                <td>Name:</td>
                <td>
                    {{ card.name }}
                </td>
            </tr>
            <tr>
                <td>
                    Credit card:
                </td>
                <td>
                    {% if card.credit_card %}
                        yes
                    {% else %}
                        no
                    {% endif %}
                </td>
            </tr>

            <tr>
                <td>
                    Net payment:
                </td>
                <td>
                    {% if card.net_payment %}
                        yes
                    {% else %}
                        no
                    {% endif %}
                </td>
            </tr>
    </table>
</div>
{% endblock %}
